d8cb526d50bc6e4cea7e361da8a252d6bc354f3d,codeInsight/impl/com/intellij/codeInsight/template/impl/TemplateState.java,TemplateState,recalcSegment,#number#boolean#Expression#Expression#,611

Before Change


      if (expressionNode instanceof ConstantNode) {
        if (result instanceof TextResult) {
          TextResult text = (TextResult)result;
          if (text.getText().equals("") && defaultValue != null) {
            result = defaultValue.calculateResult(context);
          }
        }

After Change


      if (expressionNode instanceof ConstantNode) {
        if (result instanceof TextResult) {
          TextResult text = (TextResult)result;
          if (text.getText().length() == 0 && defaultValue != null) {
            result = defaultValue.calculateResult(context);
          }
        }